package cn.kust.servicesocial.mapper;


import cn.kust.servicesocial.pojo.dto.MicrotourismFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface FollowMapper extends BaseMapper<MicrotourismFollow> {


    //根据id查询用户的关注用户列表：
    List<Long> findFollowList(Long userId);

    //根据id查询用户的粉丝列表：
    List<Long> findFanList(Long userId);


    //查询用户A与B的关注信息
    List<Integer> relationshipList(Long A,Long B);



}
